package com.epam.tasks;

import java.util.Comparator;

import com.epam.text_elements.Sentence;

public class WordNumComparator implements Comparator<Sentence>{

	@Override
	public int compare(Sentence s1, Sentence s2) {
		return s1.getNumOfWords()-s2.getNumOfWords();
	}

}
